package com.wzy;

import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

/**
 * @auth wzy
 * @date 2023/10/14 14:56
 */
public class HelloSpring {

    private String name ;

    private int age;

    private String who;

    private String[] array; // 数组类型

    private List<String> list; // List类型

    private Set<String> set; // Set类型

    private Map<String, String> map; // Map类型

    private Properties props; // Properties类型

    private String emptyValue; // 注入空字符串值

    private String nullValue = "init value"; // 注入null值

    public HelloSpring() {
    }

    public HelloSpring(String name, int age, String who) {
        this.name = name;
        this.age = age;
        this.who = who;
    }

    public void print(){
        System.out.println("Hello,"+this.getWho()+"，姓名是："+this.getName()+"，年龄是："+this.getAge());
//        System.out.println("List属性：" + this.list);
//        System.out.println("数组属性[0]：" + this.array[0]);
//        System.out.println("Set属性：" + this.set);
//        System.out.println("Map属性：" + this.map);
//        System.out.println("Properties属性：" + this.props);
//        System.out.println("注入空字符串：[" + this.emptyValue + "]");
//        System.out.println("注入null值：" + this.nullValue);
    }

    public String[] getArray() {
        return array;
    }

    public void setArray(String[] array) {
        this.array = array;
    }

    public List<String> getList() {
        return list;
    }

    public void setList(List<String> list) {
        this.list = list;
    }

    public Set<String> getSet() {
        return set;
    }

    public void setSet(Set<String> set) {
        this.set = set;
    }

    public Map<String, String> getMap() {
        return map;
    }

    public void setMap(Map<String, String> map) {
        this.map = map;
    }

    public Properties getProps() {
        return props;
    }

    public void setProps(Properties props) {
        this.props = props;
    }

    public String getEmptyValue() {
        return emptyValue;
    }

    public void setEmptyValue(String emptyValue) {
        this.emptyValue = emptyValue;
    }

    public String getNullValue() {
        return nullValue;
    }

    public void setNullValue(String nullValue) {
        this.nullValue = nullValue;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getWho() {
        return who;
    }

    public void setWho(String who) {
        this.who = who;
    }
}
